﻿<%@ Page Title="留言管理" Language="C#" MasterPageFile="~/Admin/layout.master" AutoEventWireup="true"
    CodeBehind="Note.aspx.cs" Inherits="Sunimage.Spjg.Web.Admin.Note" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href='<%=ResolveUrl("~/Themes/Default/Admin/Bulletin.css") %>' type="text/css"
        rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphWorkspace" runat="server">
    <h2>
        留言管理
    </h2>
    <hr />
    <br />
    <div class="DataPanel">
        <asp:GridView ID="gvList" Width="100%" AutoGenerateColumns="false" runat="server"
            SkinID="List" DataKeyNames="ID" AllowPaging="true" PageSize="20" OnRowCommand="gvList_RowCommand"
            OnRowDataBound="gvList_RowDataBound">
            <Columns>
                <asp:TemplateField HeaderText="No.">
                    <ItemStyle CssClass="listNo" />
                    <ItemTemplate>
                        <asp:Literal ID="LtrNo" runat="server"></asp:Literal></ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="标题">
                    <ItemTemplate>
                        <%# Eval("Title")%>
                    </ItemTemplate>
                    <ItemStyle CssClass="Title" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="内容">
                    <ItemTemplate>
                        <%# Eval("Content")%>
                    </ItemTemplate>
                    <ItemStyle CssClass="Content" />
                </asp:TemplateField>
                 <asp:TemplateField HeaderText="发布人">
                    <ItemTemplate>
                        <asp:Literal ID="ltrAuthor" runat="server"></asp:Literal>
                    </ItemTemplate>
                    <ItemStyle CssClass="Author" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="发布时间">
                    <ItemTemplate>
                        <%# Eval("CreateTime")%>
                    </ItemTemplate>
                    <ItemStyle CssClass="datetime" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="&#160;">
                    <ItemTemplate>
                        <asp:ImageButton ID="lbtnEdit" runat="server" SkinID="ListDetail" ToolTip="查看详情"
                            CommandName="EditUser" CommandArgument='<%#Eval("Id") %>'></asp:ImageButton>
                        <asp:ImageButton ID="lbtnDel" OnClientClick="return confirm('确定要删除本留言吗?');" runat="server"
                            SkinID="ListDelete" CommandName="DeleteUser" CommandArgument='<%#Eval("Id") %>'>
                        </asp:ImageButton>
                    </ItemTemplate>
                    <ItemStyle CssClass="listOp" />
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    <div class="PagerPanel">
        <webdiyer:AspNetPager ID="pager" runat="server" ShowPageIndexBox="Always" PageIndexBoxType="DropDownList"
            CssClass="paginator" CurrentPageButtonClass="cpb" TextBeforePageIndexBox="Page: "
            HorizontalAlign="Justify" PageSize="20" AlwaysShow="true" OnPageChanged="pager_PageChanged"
            CustomInfoHTML="共%PageCount%页，共%RecordCount%条数据" ShowCustomInfoSection="Right">
        </webdiyer:AspNetPager>
    </div>
</asp:Content>
